import { createRouter, createWebHashHistory } from 'vue-router'
import Layout from '@/views/Layout.vue'

const router = createRouter({
  history: createWebHashHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Layout',
      component: Layout,
      children:[
        {
          path: '/employees',
          name: 'employees',
          component: () => import('../views/employee/EmployeeView.vue'),
        },
        {
          path: '/categorys',
          name: 'categorys',
          component: () => import('../views/food/CategoryView.vue'),
        },
        {
          path: '/foods',
          name: 'foods',
          component: () => import('../views/food/FoodView.vue'),
        }
      ]
    }

  ],
})

export default router
